/*
 * XML Type:  XControl
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XControl
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XControl(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XControlImpl extends com.seedwill.xul.core.impl.XIdentifiedImpl implements com.seedwill.xul.widget.XControl
{
    private static final long serialVersionUID = 1L;
    
    public XControlImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CTLTYPE$0 = 
        new javax.xml.namespace.QName("", "ctlType");
    private static final javax.xml.namespace.QName ABSLOCATION$2 = 
        new javax.xml.namespace.QName("", "absLocation");
    private static final javax.xml.namespace.QName ABSSIZE$4 = 
        new javax.xml.namespace.QName("", "absSize");
    private static final javax.xml.namespace.QName ALIGN$6 = 
        new javax.xml.namespace.QName("", "align");
    private static final javax.xml.namespace.QName LAYOUT$8 = 
        new javax.xml.namespace.QName("", "layout");
    private static final javax.xml.namespace.QName LAYOUTDATA$10 = 
        new javax.xml.namespace.QName("", "layoutData");
    private static final javax.xml.namespace.QName DBSOURCE$12 = 
        new javax.xml.namespace.QName("", "dbSource");
    private static final javax.xml.namespace.QName DBSCHEMASOURCE$14 = 
        new javax.xml.namespace.QName("", "dbSchemaSource");
    private static final javax.xml.namespace.QName MONOFLAG$16 = 
        new javax.xml.namespace.QName("", "monoFlag");
    private static final javax.xml.namespace.QName AREAID$18 = 
        new javax.xml.namespace.QName("", "areaId");
    private static final javax.xml.namespace.QName FORMID$20 = 
        new javax.xml.namespace.QName("", "formId");
    private static final javax.xml.namespace.QName EVENT$22 = 
        new javax.xml.namespace.QName("", "event");
    private static final javax.xml.namespace.QName VISUABLE$24 = 
        new javax.xml.namespace.QName("", "visuable");
    
    
    /**
     * Gets the "ctlType" element
     */
    public java.lang.String getCtlType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CTLTYPE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ctlType" element
     */
    public org.apache.xmlbeans.XmlString xgetCtlType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CTLTYPE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "ctlType" element
     */
    public void setCtlType(java.lang.String ctlType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CTLTYPE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CTLTYPE$0);
            }
            target.setStringValue(ctlType);
        }
    }
    
    /**
     * Sets (as xml) the "ctlType" element
     */
    public void xsetCtlType(org.apache.xmlbeans.XmlString ctlType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CTLTYPE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CTLTYPE$0);
            }
            target.set(ctlType);
        }
    }
    
    /**
     * Gets the "absLocation" element
     */
    public com.seedwill.xul.core.XLocation getAbsLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XLocation target = null;
            target = (com.seedwill.xul.core.XLocation)get_store().find_element_user(ABSLOCATION$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "absLocation" element
     */
    public boolean isSetAbsLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ABSLOCATION$2) != 0;
        }
    }
    
    /**
     * Sets the "absLocation" element
     */
    public void setAbsLocation(com.seedwill.xul.core.XLocation absLocation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XLocation target = null;
            target = (com.seedwill.xul.core.XLocation)get_store().find_element_user(ABSLOCATION$2, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XLocation)get_store().add_element_user(ABSLOCATION$2);
            }
            target.set(absLocation);
        }
    }
    
    /**
     * Appends and returns a new empty "absLocation" element
     */
    public com.seedwill.xul.core.XLocation addNewAbsLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XLocation target = null;
            target = (com.seedwill.xul.core.XLocation)get_store().add_element_user(ABSLOCATION$2);
            return target;
        }
    }
    
    /**
     * Unsets the "absLocation" element
     */
    public void unsetAbsLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ABSLOCATION$2, 0);
        }
    }
    
    /**
     * Gets the "absSize" element
     */
    public com.seedwill.xul.core.XSize getAbsSize()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XSize target = null;
            target = (com.seedwill.xul.core.XSize)get_store().find_element_user(ABSSIZE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "absSize" element
     */
    public boolean isSetAbsSize()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ABSSIZE$4) != 0;
        }
    }
    
    /**
     * Sets the "absSize" element
     */
    public void setAbsSize(com.seedwill.xul.core.XSize absSize)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XSize target = null;
            target = (com.seedwill.xul.core.XSize)get_store().find_element_user(ABSSIZE$4, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XSize)get_store().add_element_user(ABSSIZE$4);
            }
            target.set(absSize);
        }
    }
    
    /**
     * Appends and returns a new empty "absSize" element
     */
    public com.seedwill.xul.core.XSize addNewAbsSize()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XSize target = null;
            target = (com.seedwill.xul.core.XSize)get_store().add_element_user(ABSSIZE$4);
            return target;
        }
    }
    
    /**
     * Unsets the "absSize" element
     */
    public void unsetAbsSize()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ABSSIZE$4, 0);
        }
    }
    
    /**
     * Gets the "align" element
     */
    public com.seedwill.xul.core.XCellAlign.Enum getAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALIGN$6, 0);
            if (target == null)
            {
                return null;
            }
            return (com.seedwill.xul.core.XCellAlign.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "align" element
     */
    public com.seedwill.xul.core.XCellAlign xgetAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XCellAlign target = null;
            target = (com.seedwill.xul.core.XCellAlign)get_store().find_element_user(ALIGN$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "align" element
     */
    public boolean isSetAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ALIGN$6) != 0;
        }
    }
    
    /**
     * Sets the "align" element
     */
    public void setAlign(com.seedwill.xul.core.XCellAlign.Enum align)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALIGN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ALIGN$6);
            }
            target.setEnumValue(align);
        }
    }
    
    /**
     * Sets (as xml) the "align" element
     */
    public void xsetAlign(com.seedwill.xul.core.XCellAlign align)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XCellAlign target = null;
            target = (com.seedwill.xul.core.XCellAlign)get_store().find_element_user(ALIGN$6, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XCellAlign)get_store().add_element_user(ALIGN$6);
            }
            target.set(align);
        }
    }
    
    /**
     * Unsets the "align" element
     */
    public void unsetAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ALIGN$6, 0);
        }
    }
    
    /**
     * Gets the "layout" element
     */
    public com.seedwill.xul.core.XTableLayout getLayout()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XTableLayout target = null;
            target = (com.seedwill.xul.core.XTableLayout)get_store().find_element_user(LAYOUT$8, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "layout" element
     */
    public boolean isSetLayout()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LAYOUT$8) != 0;
        }
    }
    
    /**
     * Sets the "layout" element
     */
    public void setLayout(com.seedwill.xul.core.XTableLayout layout)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XTableLayout target = null;
            target = (com.seedwill.xul.core.XTableLayout)get_store().find_element_user(LAYOUT$8, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XTableLayout)get_store().add_element_user(LAYOUT$8);
            }
            target.set(layout);
        }
    }
    
    /**
     * Appends and returns a new empty "layout" element
     */
    public com.seedwill.xul.core.XTableLayout addNewLayout()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XTableLayout target = null;
            target = (com.seedwill.xul.core.XTableLayout)get_store().add_element_user(LAYOUT$8);
            return target;
        }
    }
    
    /**
     * Unsets the "layout" element
     */
    public void unsetLayout()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LAYOUT$8, 0);
        }
    }
    
    /**
     * Gets the "layoutData" element
     */
    public com.seedwill.xul.core.XGridLayoutData getLayoutData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XGridLayoutData target = null;
            target = (com.seedwill.xul.core.XGridLayoutData)get_store().find_element_user(LAYOUTDATA$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "layoutData" element
     */
    public boolean isSetLayoutData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LAYOUTDATA$10) != 0;
        }
    }
    
    /**
     * Sets the "layoutData" element
     */
    public void setLayoutData(com.seedwill.xul.core.XGridLayoutData layoutData)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XGridLayoutData target = null;
            target = (com.seedwill.xul.core.XGridLayoutData)get_store().find_element_user(LAYOUTDATA$10, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XGridLayoutData)get_store().add_element_user(LAYOUTDATA$10);
            }
            target.set(layoutData);
        }
    }
    
    /**
     * Appends and returns a new empty "layoutData" element
     */
    public com.seedwill.xul.core.XGridLayoutData addNewLayoutData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XGridLayoutData target = null;
            target = (com.seedwill.xul.core.XGridLayoutData)get_store().add_element_user(LAYOUTDATA$10);
            return target;
        }
    }
    
    /**
     * Unsets the "layoutData" element
     */
    public void unsetLayoutData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LAYOUTDATA$10, 0);
        }
    }
    
    /**
     * Gets the "dbSource" element
     */
    public com.seedwill.xul.core.XDBSource getDbSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XDBSource target = null;
            target = (com.seedwill.xul.core.XDBSource)get_store().find_element_user(DBSOURCE$12, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "dbSource" element
     */
    public boolean isSetDbSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DBSOURCE$12) != 0;
        }
    }
    
    /**
     * Sets the "dbSource" element
     */
    public void setDbSource(com.seedwill.xul.core.XDBSource dbSource)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XDBSource target = null;
            target = (com.seedwill.xul.core.XDBSource)get_store().find_element_user(DBSOURCE$12, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XDBSource)get_store().add_element_user(DBSOURCE$12);
            }
            target.set(dbSource);
        }
    }
    
    /**
     * Appends and returns a new empty "dbSource" element
     */
    public com.seedwill.xul.core.XDBSource addNewDbSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XDBSource target = null;
            target = (com.seedwill.xul.core.XDBSource)get_store().add_element_user(DBSOURCE$12);
            return target;
        }
    }
    
    /**
     * Unsets the "dbSource" element
     */
    public void unsetDbSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DBSOURCE$12, 0);
        }
    }
    
    /**
     * Gets the "dbSchemaSource" element
     */
    public com.seedwill.xul.core.XDBSchemaSource getDbSchemaSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XDBSchemaSource target = null;
            target = (com.seedwill.xul.core.XDBSchemaSource)get_store().find_element_user(DBSCHEMASOURCE$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "dbSchemaSource" element
     */
    public boolean isSetDbSchemaSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DBSCHEMASOURCE$14) != 0;
        }
    }
    
    /**
     * Sets the "dbSchemaSource" element
     */
    public void setDbSchemaSource(com.seedwill.xul.core.XDBSchemaSource dbSchemaSource)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XDBSchemaSource target = null;
            target = (com.seedwill.xul.core.XDBSchemaSource)get_store().find_element_user(DBSCHEMASOURCE$14, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XDBSchemaSource)get_store().add_element_user(DBSCHEMASOURCE$14);
            }
            target.set(dbSchemaSource);
        }
    }
    
    /**
     * Appends and returns a new empty "dbSchemaSource" element
     */
    public com.seedwill.xul.core.XDBSchemaSource addNewDbSchemaSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XDBSchemaSource target = null;
            target = (com.seedwill.xul.core.XDBSchemaSource)get_store().add_element_user(DBSCHEMASOURCE$14);
            return target;
        }
    }
    
    /**
     * Unsets the "dbSchemaSource" element
     */
    public void unsetDbSchemaSource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DBSCHEMASOURCE$14, 0);
        }
    }
    
    /**
     * Gets the "monoFlag" element
     */
    public boolean getMonoFlag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MONOFLAG$16, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "monoFlag" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetMonoFlag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(MONOFLAG$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "monoFlag" element
     */
    public boolean isSetMonoFlag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MONOFLAG$16) != 0;
        }
    }
    
    /**
     * Sets the "monoFlag" element
     */
    public void setMonoFlag(boolean monoFlag)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MONOFLAG$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MONOFLAG$16);
            }
            target.setBooleanValue(monoFlag);
        }
    }
    
    /**
     * Sets (as xml) the "monoFlag" element
     */
    public void xsetMonoFlag(org.apache.xmlbeans.XmlBoolean monoFlag)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(MONOFLAG$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(MONOFLAG$16);
            }
            target.set(monoFlag);
        }
    }
    
    /**
     * Unsets the "monoFlag" element
     */
    public void unsetMonoFlag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MONOFLAG$16, 0);
        }
    }
    
    /**
     * Gets the "areaId" element
     */
    public java.lang.String getAreaId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AREAID$18, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "areaId" element
     */
    public org.apache.xmlbeans.XmlString xgetAreaId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(AREAID$18, 0);
            return target;
        }
    }
    
    /**
     * True if has "areaId" element
     */
    public boolean isSetAreaId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(AREAID$18) != 0;
        }
    }
    
    /**
     * Sets the "areaId" element
     */
    public void setAreaId(java.lang.String areaId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AREAID$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AREAID$18);
            }
            target.setStringValue(areaId);
        }
    }
    
    /**
     * Sets (as xml) the "areaId" element
     */
    public void xsetAreaId(org.apache.xmlbeans.XmlString areaId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(AREAID$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(AREAID$18);
            }
            target.set(areaId);
        }
    }
    
    /**
     * Unsets the "areaId" element
     */
    public void unsetAreaId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(AREAID$18, 0);
        }
    }
    
    /**
     * Gets the "formId" element
     */
    public java.lang.String getFormId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMID$20, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "formId" element
     */
    public org.apache.xmlbeans.XmlString xgetFormId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMID$20, 0);
            return target;
        }
    }
    
    /**
     * True if has "formId" element
     */
    public boolean isSetFormId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FORMID$20) != 0;
        }
    }
    
    /**
     * Sets the "formId" element
     */
    public void setFormId(java.lang.String formId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMID$20, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FORMID$20);
            }
            target.setStringValue(formId);
        }
    }
    
    /**
     * Sets (as xml) the "formId" element
     */
    public void xsetFormId(org.apache.xmlbeans.XmlString formId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMID$20, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FORMID$20);
            }
            target.set(formId);
        }
    }
    
    /**
     * Unsets the "formId" element
     */
    public void unsetFormId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FORMID$20, 0);
        }
    }
    
    /**
     * Gets array of all "event" elements
     */
    public com.seedwill.xul.widget.XEvent[] getEventArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(EVENT$22, targetList);
            com.seedwill.xul.widget.XEvent[] result = new com.seedwill.xul.widget.XEvent[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "event" element
     */
    public com.seedwill.xul.widget.XEvent getEventArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XEvent target = null;
            target = (com.seedwill.xul.widget.XEvent)get_store().find_element_user(EVENT$22, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "event" element
     */
    public int sizeOfEventArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EVENT$22);
        }
    }
    
    /**
     * Sets array of all "event" element
     */
    public void setEventArray(com.seedwill.xul.widget.XEvent[] eventArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(eventArray, EVENT$22);
        }
    }
    
    /**
     * Sets ith "event" element
     */
    public void setEventArray(int i, com.seedwill.xul.widget.XEvent event)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XEvent target = null;
            target = (com.seedwill.xul.widget.XEvent)get_store().find_element_user(EVENT$22, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(event);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "event" element
     */
    public com.seedwill.xul.widget.XEvent insertNewEvent(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XEvent target = null;
            target = (com.seedwill.xul.widget.XEvent)get_store().insert_element_user(EVENT$22, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "event" element
     */
    public com.seedwill.xul.widget.XEvent addNewEvent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XEvent target = null;
            target = (com.seedwill.xul.widget.XEvent)get_store().add_element_user(EVENT$22);
            return target;
        }
    }
    
    /**
     * Removes the ith "event" element
     */
    public void removeEvent(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EVENT$22, i);
        }
    }
    
    /**
     * Gets the "visuable" attribute
     */
    public boolean getVisuable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VISUABLE$24);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(VISUABLE$24);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "visuable" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetVisuable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(VISUABLE$24);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(VISUABLE$24);
            }
            return target;
        }
    }
    
    /**
     * True if has "visuable" attribute
     */
    public boolean isSetVisuable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(VISUABLE$24) != null;
        }
    }
    
    /**
     * Sets the "visuable" attribute
     */
    public void setVisuable(boolean visuable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VISUABLE$24);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VISUABLE$24);
            }
            target.setBooleanValue(visuable);
        }
    }
    
    /**
     * Sets (as xml) the "visuable" attribute
     */
    public void xsetVisuable(org.apache.xmlbeans.XmlBoolean visuable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(VISUABLE$24);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(VISUABLE$24);
            }
            target.set(visuable);
        }
    }
    
    /**
     * Unsets the "visuable" attribute
     */
    public void unsetVisuable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(VISUABLE$24);
        }
    }
}
